package guyubao.com.entity.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wxa
 */
@Data
@NoArgsConstructor
@TableName("JDCertificate")
@AllArgsConstructor
@Schema(description = "京东账号凭证")
public class JDCertificateDto implements Serializable {
    @Schema(description = "账号id")
    String uId;
    @Schema(description = "凭证")
    String pt_key;
    @Schema(description = "凭证")
    String pt_token;
    @Schema(description = "凭证")
    String pt_pin;
    @Schema(description = "次数")
    int count;
    @Schema(description = "更新日期")
    Date updateTime;
    @Schema(description = "状态(0不正常1正常)")
    byte state;

    public JDCertificateDto(String uId, String pt_key, String pt_token, String pt_pin) {
        this.uId = uId;
        this.pt_key = pt_key;
        this.pt_token = pt_token;
        this.pt_pin = pt_pin;
    }
}
